/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.client.settings.KeyBinding;
/*    */ import net.minecraft.util.text.ITextComponent;
/*    */ import net.minecraft.util.text.TextComponentString;
/*    */ import net.minecraftforge.client.event.RenderPlayerEvent;
/*    */ import net.minecraftforge.fml.client.registry.ClientRegistry;
/*    */ import net.minecraftforge.fml.common.eventhandler.EventPriority;
/*    */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*    */ import net.minecraftforge.fml.common.gameevent.InputEvent;
/*    */ 
/*    */ 
/*    */ public class sy
/*    */ {
/*    */   private static KeyBinding w;
/*    */   private static KeyBinding q;
/*    */   private static boolean g = false;
/*    */   
/*    */   public static void z() {
/* 21 */     w = new KeyBinding("隐藏实体模型", 211, "DragonCore");
/* 22 */     ClientRegistry.registerKeyBinding(w);
/*    */   }
/*    */   
/*    */   public static void v() {
/* 26 */     q = new KeyBinding("隐藏其他玩家", 199, "DragonCore");
/* 27 */     ClientRegistry.registerKeyBinding(q);
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public void v(InputEvent.KeyInputEvent keyInputEvent) {
/* 32 */     if (w != null && w.func_151468_f()) {
/* 33 */       tfa.q = !tfa.q;
/* 34 */       (Minecraft.func_71410_x()).field_71439_g.func_145747_a((ITextComponent)new TextComponentString("§a已" + (tfa.q ? "关闭" : "开启") + "显示实体模型"));
/*    */     } 
/* 36 */     if (q != null && q.func_151468_f()) {
/* 37 */       g = !g;
/* 38 */       (Minecraft.func_71410_x()).field_71439_g.func_145747_a((ITextComponent)new TextComponentString("§a已" + (g ? "关闭" : "开启") + "显示其他玩家(以及部分NPC)"));
/*    */     } 
/*    */   }
/*    */   
/*    */   @SubscribeEvent(priority = EventPriority.HIGHEST)
/*    */   public void v(RenderPlayerEvent.Pre pre) {
/* 44 */     if (!g)
/*    */       return; 
/* 46 */     if (pre.getEntity() == (Minecraft.func_71410_x()).field_71439_g)
/*    */       return; 
/* 48 */     if (pre.getEntity().func_145748_c_().func_150260_c().contains("§"))
/*    */       return; 
/* 50 */     pre.setCanceled(true);
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\sy.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */